package com.payease.ezt.app;

import android.app.Application;
import android.util.Log;

/**
 * Created by wuyong on 16/8/3.
 */
public class AppApplication extends Application {
    private static final String TAG = AppApplication.class.getSimpleName();

    @Override
    public void onCreate() {
        super.onCreate();
        Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
            @Override
            public void uncaughtException(Thread thread, Throwable ex) {
                Log.e(TAG,ex.getMessage());
            }
        });
    }
}
